<?php 
//Name: loginformheader.php
//Purpose: This script is for displaying the login form in the header
//CreateDate: 10/01/12

?>
		<div class="logo" onclick="loadHomePage()">TC Aparrel :-)</div>

		<form name="loginForm" class="login" action="login.php" method="post" onsubmit="return validateLogin2()" >
			<table id="loginTable" class="loginTable">
				<tr>
					<td>Username:</td>
					<td><input id="username" type="text" name="username"></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input id="password" name="password" type="password"></td>
				</tr>
				<tr>
					<td ><a href="register.php" >Register</a></td>
					<td id="submitTableCell" align="right">
					<?php 
					if(isset($_SESSION['invalidLogin']) && $_SESSION['invalidLogin'] == true)
					{
						echo '<label class="invalidLogin">Invalid Login</label>';
					}
					
					?>
					<input id="submitLogin" type="submit" name="submitLogin" value="Login"></td>
				</tr>
			</table>
		</form>
